#include <iostream>
#include <ctime>
#include <random>
#include "TextScreen.h"
void delay(double n)
{
    double start = clock();
    while(true)
    {
        double end = clock();
        if(((end - start)/CLK_TCK) > n)
            break;
    }
}
int main()
{
    TextScreen screen(80,40);
    screen.update();
    for(int i = 0; i<10; i++)
    {
        system("clear");

        int x = rand()%70;
        int y = rand()%40;
        screen.clear();
        screen.draw(x,y,"hello");
        screen.update();
        delay(3000);
    }

       
}